package com.yy.bolg.dao;

import com.yy.bolg.entity.WorkOrderBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 工单Dao层
 * @author enmaoFu
 * @date 2024-11-11
 */
@Mapper
public interface WorkOrderDao extends BaseDao<WorkOrderBean>{

    List<WorkOrderBean> findAllByCondition(WorkOrderBean bean);

    List<WorkOrderBean> findAllToIndex(WorkOrderBean bean);

    int dispatch(WorkOrderBean bean);

    int publish(WorkOrderBean bean);

    int arrive(WorkOrderBean bean);

    int accept(WorkOrderBean bean);

    int grabOrder(WorkOrderBean bean);

    int refuse(WorkOrderBean bean);

    int workAddTesting(WorkOrderBean bean);

    int workCompleteTesting(WorkOrderBean bean);

    int workCompleteRepair(WorkOrderBean bean);

    int endWorkOrder(WorkOrderBean bean);

    int doItAgainWorkOrder(WorkOrderBean bean);

    List<WorkOrderBean> findUnread(WorkOrderBean bean);

    int upUnread(WorkOrderBean bean);

    int upAppointUnread(WorkOrderBean bean);

}
